Release 10.1A: OpenEdge Getting Started:
Progress OpenEdge Studio


Task list and short procedure

To reach this point, you need to know how to do the following tasks:

  1. Add a prebuilt SDO.
  2. Link SDOs together and map their foreign fields.
  3. Add a prebuilt SDV.
  4. Link an SDV to an SDO.
  5. Create and resize a button.
  6. Enhance a button with a ToolTip, a Help ID, and an image.
  7. Code a launch trigger for a button using the Section Editor.
  8. Create and resize an OCX control.
  9. Code navigation triggers for an OCX control using the Section Editor.

The following short procedure outlines how to complete these tasks.

To build the Order section:

  1. Add a prebuilt SDO, dorder.w, to the Order section.
  2. See the "Adding a SDO for orders" section to review this procedure.

  3. Create a Data SmartLink from dcust.w to dorder.w.
  4. See Step 3 in the "Adding a SDO for orders" section to review this procedure.

  5. Map the Customer.CustNum field to the Order.CustNum field.
  6. See Step 4 in the "Adding a SDO for orders" section to review this procedure.

  7. Add a prebuilt SDO, dordlne.w, to the Order section.
  8. See the "Adding a SDO for order lines" section to review this procedure.

  9. Create a Data SmartLink from dorder.w to dordlne.w.
  10. See Step 3 in the "Adding a SDO for order lines" section to review this procedure.

  11. Map the Order.Ordernum field to the OrderLine.Ordernum field.
  12. See Step 5 in the "Adding a SDO for order lines" section to review this procedure.

  13. Add a prebuilt SDV, vorder.w, to the Order Section.
  14. See the "Adding a SDV" section to review this procedure.

  15. Create a Data SmartLink from dorder.w to vorder.w.
  16. See Step 3 in the "Adding a SDV" section to review this procedure.

  17. Create an Update SmartLink from vorder.w to dorder.w.
  18. See Step 4 in the "Adding a SDV" section to review this procedure.

  19. Add three buttons with the following properties:
  20. Object
    Left
    Height
    Width
    ToolTip
    Help ID
    Image
    BUTTON-3
    14
    2.38
    10
    Place New Order
    3
    crtord.jpg 
    
    BUTTON-4
    14
    2.38
    10
    Find Order
    4
    findord.jpg 
    
    BUTTON-5
    14
    2.38
    10
    Maintain Order
    5
    mainord.jpg 
    

    See the "Creating and positioning the buttons" section and the "Adding ToolTips, help IDs, and images to the buttons" section to review this procedure.

  21. Write CHOOSE event triggers for the buttons in the Section Editor.
  22. See the "Coding event triggers for the Order buttons" section to review this procedure.

  23. Add and position two control frames, based on the Crescent Spin Control OCX.
  24. See the "Adding OCX controls" section to review this procedure.

  25. Give the OCX control frames the following properties:
  26. Property
    Value
    Height
    1.52
    Width
    9.0
    Style
    3D Horizontal
    ArrowColor
    dark blue

    See the "Changing the appearance of the OCX controls" section to review this procedure.

  27. Create the following Text labels:
  28. Object
    Label
    Color
    CtrlFrame
    Prev/Next
    1
    CtrlFrame-2
    First/Last
    1

    See Step 7 in the "Changing the appearance of the OCX controls" section to review this procedure.

  29. Place a rectangle around each OCX control and its text label.
  30. See Step 8 in the "Changing the appearance of the OCX controls" section to review this procedure.

  31. Add OCX.SpinDown and OCX.SpinUp triggers for the control frames.
  32. See the "Coding the Prev/Next spin box to fetch the previous record" section and the "Coding the First/Last spin box to fetch the first and last records" section to review this procedure.

  33. Run and check your application.
  34. See the "Viewing the window" section to review this procedure.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095